package com.meida.module.bus.provider.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.meida.common.mybatis.base.service.impl.BaseServiceImpl;
import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.common.mybatis.query.CriteriaSave;
import com.meida.module.bus.client.entity.BBpWbProejct;
import com.meida.module.bus.provider.mapper.BBpWbProejctMapper;
import com.meida.module.bus.provider.service.BBpWbProejctService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * 接口实现类
 *
 * @author flyme
 * @date 2020-09-26
 */
@Service
@Transactional(rollbackFor = Exception.class)
@DS("master")
public class BBpWbProejctServiceImpl extends BaseServiceImpl<BBpWbProejctMapper, BBpWbProejct> implements BBpWbProejctService {

    @Override
    public ResultBody beforeAdd(CriteriaSave cs, BBpWbProejct bbw, EntityMap extra) {
        return ResultBody.ok();
    }

    @Override
    @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
    public ResultBody beforePageList(CriteriaQuery<BBpWbProejct> cq, BBpWbProejct bbw, EntityMap requestMap) {

      return ResultBody.ok();
    }
}
